package com.tfjybj.itoo.exam.provider.service.impl;

import com.dmsdbj.itoo.tool.base.service.impl.BaseServicePlusImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.tfjybj.itoo.exam.entity.ExamNotesEntity;
import com.tfjybj.itoo.exam.model.ExamNotesModel;
import com.tfjybj.itoo.exam.provider.dao.ExamNotesDao;
import com.tfjybj.itoo.exam.provider.service.ExamNotesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * ExamNotesService接口实现类
 * ${base}表
 *
 * @author 任晓帅
 * @version 2.0.0
 * @since 2.0.0 2018-11-15 19:40:28
 */
@Service("examNotesService")
public class ExamNotesServiceImpl extends BaseServicePlusImpl<ExamNotesDao, ExamNotesEntity> implements ExamNotesService {
	
	//region 模板生成
    @Resource
    private ExamNotesDao examNotesDao;

	 @Override
    public PageInfo<ExamNotesEntity> queryByLikeContent(String content, Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo<>(examNotesDao.queryLikeContent(content));
    }


    //endregion

    /* **********************************以下为非模板生成的内容********************************* */

    @Override
    public ExamNotesModel queryExamNotes(String examId) {
        return examNotesDao.queryExamNotes(examId);
    }
}
